package com.yylany.auth.client;

import com.yylany.pojo.TbUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("web-service")
public interface UserClient {
    @GetMapping("query")
    ResponseEntity<TbUser> queryUser(@RequestParam("mobile") String mobile,
                                     @RequestParam("password") String password);
}
